<?php
/**
 * Created by b17
 * 2/29/12 5:15 PM
 */

namespace Managers\Widget;

class CommentableWidget extends AbstractWidget
{
    const LIMIT = 5;

    public function init()
    {
        $newsManager = new \Managers\News();
        $news = $newsManager->getMostCommentable(self::LIMIT);
        $this->view->news = $news;
    }

    /**
     * Название файла для вывода.
     *
     */
    public function getScriptName()
    {
        return "/widget/commentable.phtml";
    }
}
